package com.gec.service.abst;

import com.gec.domain.PageBean;
import com.gec.domain.PageParam;
import com.gec.domain.Role;

import java.sql.SQLException;

/*
 *  Author: DawnFz.com
 *  Date: 2022/9/19 9:25
 *  Project: HotelProject
 *  Version: 1.0
 *  Describe: []
 */
public interface RoleService
{
    PageBean<Role> getRoleList(PageParam param) throws SQLException;

    Role getRoleById(String id) throws SQLException;

    boolean saveRole(Role role) throws SQLException;

    boolean delRole(String id) throws SQLException;

    boolean addRole(Role role) throws SQLException;

    boolean addRolePermission(String roleId, String[] permission)throws SQLException;
}
